
/*
 * Karvaly.Event
 * depends: Karvaly.Class
 */
Karvaly.Event = (function() {
    
    var Event = new Karvaly.Class({
	constructor : function(type, detail) {
	    this.type = String(type);
	    if (arguments.length > 1) {
		this.detail = detail;
	    } else {
		this.detail = null;
	    }
	    this.target = null;
	    this.currentTarget = null;
	    this.isPropagationStoped = false;
	},
	stopPropagation : function() {
	    if (this.isPropagationStoped !== true) {
		this.isPropagationStoped = true;
	    }
	}
    });
    
    return Event;
})();
